package cn.com.miaoto.business.service;

import cn.com.miaoto.base.common.BaseService;
import cn.com.miaoto.business.model.Custom;
import cn.com.miaoto.business.mysql.CustomMapper;
import cn.com.miaoto.business.vo.CustomInfo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * Created by guo.chen on 2018/9/15.
 */
@Service
public class CustomService extends BaseService<Custom>{

    @Resource
    private CustomMapper customMapper;

    public List<CustomInfo> selectCustomList(Map params){
        return customMapper.selectCustomInfo(params);
    }

    public List<Map> countByMonth(Map params){
        return customMapper.countByMonth(params);
    }

    public List<Map> countByYear(Map params){
        return customMapper.countByYear(params);
    }
}
